<?php
class Popup{
	public function selectPopupList($params){
		$fp = FpInstance::getInstance();
		/*파라미터 세팅*/
		$param = array();
		$pageConfig = getPagingNumber($params['pageIndex']);
		$param = array_merge($params, $pageConfig, $param  );
		
		//logging($param);
		
		$result = array();
		$result[data] = $fp->doSelect("Popup.selectPopupList",$param);
		$cnt = $fp->doSelect("Popup.selectPopupListCnt",$param);
		$result[cnt] = $cnt[0][cnt];
		return $result;
	}
	
	public function selectPopup($params){
		$fp = FpInstance::getInstance();
		
		$result = array();
		$data = $fp->doSelect("Popup.selectPopup",$params);
		$result[data] = $data[0];
		return $result;
	}
	
	public function insertPopup($params){
		$fp = FpInstance::getInstance();
		$fp->doInsert("Popup.insertPopup", $params);
		return array("success");
	}
}
?>